package server

import (
	"fmt"

	. "starsine.cn/appTpl/cmn/defs"
)

var sc *ApiServer = nil

func Start(appCtxt *AppContext) error {
	s, err := CreateApiServer(appCtxt)
	if err != nil {
		return fmt.Errorf("CreateApiServer fail")
	}

	sc = s
	return nil
}
